# @Time  : 2021/7/28 22:11
# @Author: zhanfengzhen
# @Email : zhanfengzhen@126.com
# @File  : contactPage.py
# !/usr/bin/env python
# -*- coding: UTF-8 -*-
from appium.webdriver.common.mobileby import MobileBy

from hogwarts.HogwartsHomework.appWork1.po.add_memberPage import AddMemberPage
from hogwarts.HogwartsHomework.appWork1.po.basePage import BasePage


class ContactPage(BasePage):
    def goto_add_member(self):
        self.driver.find_element(MobileBy.XPATH, '//*[@text="添加成员"]').click()
        return AddMemberPage(self.driver)
